<!DOCTYPE html>
<html lang="zh_CN">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        *{
            margin: 0;
            padding: 0;
        }
        i{
            width: 100px;
            height: 100px;
            background-color: red;

            padding-top: 20px;
            padding-right: 30px;
            padding-bottom: 40px;
            padding-left: 50px;

        }
        .i1{
            /*margin-top: 10px;*/
            margin-right: 20px;
            /*margin-bottom: 10px;*/
            margin-left: 30px;
        }



    </style>
</head>
<body>

    <h2>行内元素-无法设置宽高</h2>
    <!-- 是否可以设置 bd？ padding margin-->
    <i class="i1">文字1</i><i>斜体文字2</i>
<div>Lorem ipsum dolor sit amet, consectetur.</div>

</body>
</html>